import React, {Component} from 'react';
import clockTime from './clock'
import style from 'styled-components'

const Div = style.div`
  display: block;
  width: 500px;
  height: 500px
  
`

class Clock extends Component {
  componentDidMount() {
    this.clock = new clockTime({dom: this.dom})
  }
  render() {
    return (
      <Div 
        innerRef={(dom) => { this.dom = dom }}
      />
    )
  }
}

export default Clock